StructuredMessage.fromJson constructor

StructuredMessage.fromJson(
  1. Map _json
)

Implementation

StructuredMessage.fromJson(core.Map _json)
    : this(
        messageKey: _json.containsKey('messageKey')
            ? _json['messageKey'] as core.String
            : null,
        messageText: _json.containsKey('messageText')
            ? _json['messageText'] as core.String
            : null,
        parameters: _json.containsKey('parameters')
            ? (_json['parameters'] as core.List)
                .map<Parameter>((value) => Parameter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );