toJson method

  1. @override
Map<String, dynamic> toJson()

Implementation

@override
Map<String, dynamic> toJson() => {
      'name': name,
      'version': version.toString(),
    };