Device.fromJson constructor

Device.fromJson(
  1. Map json_
)

Implementation

Device.fromJson(core.Map json_)
    : this(
        androidId: json_.containsKey('androidId')
            ? json_['androidId'] as core.String
            : null,
        device: json_.containsKey('device')
            ? json_['device'] as core.String
            : null,
        latestBuildFingerprint: json_.containsKey('latestBuildFingerprint')
            ? json_['latestBuildFingerprint'] as core.String
            : null,
        maker:
            json_.containsKey('maker') ? json_['maker'] as core.String : null,
        managementType: json_.containsKey('managementType')
            ? json_['managementType'] as core.String
            : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
        policy: json_.containsKey('policy')
            ? Policy.fromJson(
                json_['policy'] as core.Map<core.String, core.dynamic>)
            : null,
        product: json_.containsKey('product')
            ? json_['product'] as core.String
            : null,
        report: json_.containsKey('report')
            ? DeviceReport.fromJson(
                json_['report'] as core.Map<core.String, core.dynamic>)
            : null,
        retailBrand: json_.containsKey('retailBrand')
            ? json_['retailBrand'] as core.String
            : null,
        sdkVersion: json_.containsKey('sdkVersion')
            ? json_['sdkVersion'] as core.int
            : null,
      );