toJson method

Map<String, dynamic> toJson()

to json

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    'files': files,
    'structs': structs.map((e) => e.toJson()).toList(),
  };
}