fromJson static method

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

Implementation

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

  return AuthenticationCodeTypeSms(length: (json['length'] as int?) ?? 0);
}