AccountRequirementsError.fromJson constructor

AccountRequirementsError.fromJson(
  1. Object? json
)

Implementation

factory AccountRequirementsError.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountRequirementsError(
    code: AccountRequirementsErrorCode.fromJson(map['code']),
    reason: (map['reason'] as String),
    requirement: (map['requirement'] as String),
  );
}