fromJson static method

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

Implementation

static Account fromJson(Map<String, dynamic> json) {
  return Account(
    id: json['id'],
    name: json['name'],
  );
}