fromJson static method

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

Implementation

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

  return EncryptedCredentials(
    data: (json['data'] as String?) ?? '',
    hash: (json['hash'] as String?) ?? '',
    secret: (json['secret'] as String?) ?? '',
  );
}