AccountData.fromJson constructor

AccountData.fromJson(
  1. dynamic data
)

Implementation

factory AccountData.fromJson(dynamic data) => parseWithEncoding(
      data,
      fromEncoded: AccountData.binary,
      fromParsed: ParsedAccountData.fromJson,
      onUnknownEncoding: (String encoding) => encoding.isEmpty
          ? const AccountData.empty()
          : throw FormatException('unknown encoding $encoding'),
    );