fromJson static method

FirebaseDeviceVerificationParametersPlayIntegrity? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static FirebaseDeviceVerificationParametersPlayIntegrity? fromJson(
    Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return FirebaseDeviceVerificationParametersPlayIntegrity(
    nonce: (json['nonce'] as String?) ?? '',
    cloudProjectNumber: (json['cloud_project_number'] is int
            ? json['cloud_project_number'] as int
            : int.tryParse(json['cloud_project_number']?.toString() ?? '')) ??
        0,
  );
}