NIMQuickCommentOptionWrapper.fromMap constructor Null safety

NIMQuickCommentOptionWrapper.fromMap(
  1. Map<String, dynamic> param
)

Implementation

factory NIMQuickCommentOptionWrapper.fromMap(Map<String, dynamic> param) {
  return NIMQuickCommentOptionWrapper(
      key: NIMMessageKey.fromMap(
          Map<String, dynamic>.from(param['key'] as Map)),
      quickCommentList: (param['quickCommentList'] as List<dynamic>?)
          ?.map((e) => NIMQuickCommentOption.fromMap(
              Map<String, dynamic>.from(e as Map)))
          .toList(),
      modify: param['modify'] as bool?,
      time: param['time'] as int?);
}