fromJson static method

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

Implementation

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

  return AuthenticationCodeTypeFirebaseIos(
    receipt: (json['receipt'] as String?) ?? '',
    pushTimeout: (json['push_timeout'] as int?) ?? 0,
    length: (json['length'] as int?) ?? 0,
  );
}