UserDataMapping.fromJson constructor

UserDataMapping.fromJson(
  1. Map json_
)

Implementation

UserDataMapping.fromJson(core.Map json_)
    : this(
        archiveTime: json_.containsKey('archiveTime')
            ? json_['archiveTime'] as core.String
            : null,
        archived: json_.containsKey('archived')
            ? json_['archived'] as core.bool
            : null,
        dataId: json_.containsKey('dataId')
            ? json_['dataId'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        resourceAttributes: json_.containsKey('resourceAttributes')
            ? (json_['resourceAttributes'] as core.List)
                .map((value) => Attribute.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        userId: json_.containsKey('userId')
            ? json_['userId'] as core.String
            : null,
      );