Job.fromJson constructor

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

Implementation

factory Job.fromJson(Map<String, dynamic> json) {
  return Job(
    accountId: json['accountId'] as String?,
    data: json['data'] != null
        ? JobData.fromJson(json['data'] as Map<String, dynamic>)
        : null,
    id: json['id'] as String?,
    nonce: json['nonce'] as String?,
  );
}