List.fromJson constructor

List.fromJson(
  1. Map json_
)

Implementation

List.fromJson(core.Map json_)
    : this(
        listProperties: json_.containsKey('listProperties')
            ? ListProperties.fromJson(json_['listProperties']
                as core.Map<core.String, core.dynamic>)
            : null,
        suggestedDeletionIds: json_.containsKey('suggestedDeletionIds')
            ? (json_['suggestedDeletionIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        suggestedInsertionId: json_.containsKey('suggestedInsertionId')
            ? json_['suggestedInsertionId'] as core.String
            : null,
        suggestedListPropertiesChanges:
            json_.containsKey('suggestedListPropertiesChanges')
                ? (json_['suggestedListPropertiesChanges']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      SuggestedListProperties.fromJson(
                          value as core.Map<core.String, core.dynamic>),
                    ),
                  )
                : null,
      );