Metadata.fromJson constructor

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

Implementation

factory Metadata.fromJson(Map<String, dynamic> json) => Metadata(
  operationType: json['operationType'],
  hash: json['hash'],
  minedAt: json['minedAt'] == null ? null : DateTime.parse(json['minedAt']),
  sentFrom: json['sentFrom'],
  sentTo: json['sentTo'],
  status: json['status'],
  nonce: json['nonce'],
  application: json['application'] == null
      ? null
      : Application.fromJson(json['application']),
  chain: json['chain'],
);