Dont change order of toJson the key index must be equal to protoConfig fields.
protoConfig
Map<String, dynamic> toJson();