StatusUpdateRequest.fromJson constructor

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

Implementation

factory StatusUpdateRequest.fromJson(Map<String, Object?> json) {
  return StatusUpdateRequest(
    statuses: (json[r'statuses'] as List<Object?>?)
            ?.map((i) =>
                StatusUpdate.fromJson(i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}