ActorInputBean.fromJson constructor

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

Implementation

factory ActorInputBean.fromJson(Map<String, Object?> json) {
  return ActorInputBean(
    group: (json[r'group'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    groupId: (json[r'groupId'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    user: (json[r'user'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}