toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      if (format != null) 'format': format!.toJson(),
      if (voice != null) 'voice': voice!.toJson(),
    };