DashboardGadgetUpdateRequest.fromJson constructor

DashboardGadgetUpdateRequest.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory DashboardGadgetUpdateRequest.fromJson(Map<String, Object?> json) {
  return DashboardGadgetUpdateRequest(
    color: json[r'color'] as String?,
    position: json[r'position'] != null
        ? DashboardGadgetPosition.fromJson(
            json[r'position']! as Map<String, Object?>)
        : null,
    title: json[r'title'] as String?,
  );
}