LocalizedString.fromJson constructor

LocalizedString.fromJson(
  1. Map json_
)

Implementation

LocalizedString.fromJson(core.Map json_)
    : this(
        args: json_.containsKey('args')
            ? (json_['args'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        message: json_.containsKey('message')
            ? json_['message'] as core.String
            : null,
        token:
            json_.containsKey('token') ? json_['token'] as core.String : null,
      );