Content.fromJson constructor

Content.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Content.fromJson(Map<String, dynamic> json) {
  if (json['parts'] != null) {
    parts = <Parts>[];
    json['parts'].forEach((v) {
      parts!.add(Parts.fromJson(v));
    });
  }
  role = json['role'];
}