UserComment.fromJson constructor

UserComment.fromJson(
  1. Map json_
)

Implementation

UserComment.fromJson(core.Map json_)
    : this(
        androidOsVersion: json_.containsKey('androidOsVersion')
            ? json_['androidOsVersion'] as core.int
            : null,
        appVersionCode: json_.containsKey('appVersionCode')
            ? json_['appVersionCode'] as core.int
            : null,
        appVersionName: json_.containsKey('appVersionName')
            ? json_['appVersionName'] as core.String
            : null,
        device: json_.containsKey('device')
            ? json_['device'] as core.String
            : null,
        deviceMetadata: json_.containsKey('deviceMetadata')
            ? DeviceMetadata.fromJson(json_['deviceMetadata']
                as core.Map<core.String, core.dynamic>)
            : null,
        lastModified: json_.containsKey('lastModified')
            ? Timestamp.fromJson(
                json_['lastModified'] as core.Map<core.String, core.dynamic>)
            : null,
        originalText: json_.containsKey('originalText')
            ? json_['originalText'] as core.String
            : null,
        reviewerLanguage: json_.containsKey('reviewerLanguage')
            ? json_['reviewerLanguage'] as core.String
            : null,
        starRating: json_.containsKey('starRating')
            ? json_['starRating'] as core.int
            : null,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
        thumbsDownCount: json_.containsKey('thumbsDownCount')
            ? json_['thumbsDownCount'] as core.int
            : null,
        thumbsUpCount: json_.containsKey('thumbsUpCount')
            ? json_['thumbsUpCount'] as core.int
            : null,
      );