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:
        int.tryParse(
          (json['cloud_project_number'] as dynamic)?.toString() ?? '',
        ) ??
        0,
  );
}