toJson method

Map<String, dynamic> toJson()

Creates Map from Class Object

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'modules':
          modules.map((value) => value.toJson()).toList(growable: false),
      'extrinsic': extrinsic.toJson(),
    };