toJson method

Map<String, dynamic> toJson()
inherited

Implementation

Map<String, dynamic> toJson() => <String, Object?>{
      ...?json,
      'type': type,
    };