UserFacingMessage.fromJson constructor
UserFacingMessage.fromJson(
- Map json_
Implementation
UserFacingMessage.fromJson(core.Map json_)
: this(
defaultMessage: json_.containsKey('defaultMessage')
? json_['defaultMessage'] as core.String
: null,
localizedMessages: json_.containsKey('localizedMessages')
? (json_['localizedMessages']
as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
);