toJson method

Map toJson()

Implementation

Map toJson() => <String, dynamic>{
      'id': id,
      'name': name,
    };