ProtocolEmulationUserAgentMetadata.fromJson constructor

ProtocolEmulationUserAgentMetadata.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ProtocolEmulationUserAgentMetadata.fromJson(
  Map<String, dynamic> json,
) {
  return ProtocolEmulationUserAgentMetadata(
    brands: json['brands'] != null
        ? (json['brands'] as List)
              .map((i) => ProtocolEmulationUserAgentBrandVersion.fromJson(i))
              .toList()
        : null,
    fullVersionList: json['fullVersionList'] != null
        ? (json['fullVersionList'] as List)
              .map((i) => ProtocolEmulationUserAgentBrandVersion.fromJson(i))
              .toList()
        : null,
    fullVersion: json['fullVersion'],
    platform: json['platform'],
    platformVersion: json['platformVersion'],
    architecture: json['architecture'],
    model: json['model'],
    mobile: json['mobile'],
    bitness: json['bitness'],
    wow64: json['wow64'],
    formFactors: json['formFactors'] != null
        ? List<String>.from(json['formFactors'])
        : null,
  );
}