ComposeRequest.fromJson constructor

ComposeRequest.fromJson(
  1. Map _json
)

Implementation

ComposeRequest.fromJson(core.Map _json)
    : this(
        destination: _json.containsKey('destination')
            ? Object.fromJson(
                _json['destination'] as core.Map<core.String, core.dynamic>)
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        sourceObjects: _json.containsKey('sourceObjects')
            ? (_json['sourceObjects'] as core.List)
                .map((value) => ComposeRequestSourceObjects.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );