getCustomFields static method

Map<String, String> getCustomFields(
  1. DartObject e
)

Implementation

static Map<String, String> getCustomFields(DartObject e) {
  final Map<String, String> res = {};

  final map = e.getField('customFields')!.toMapValue()!;

  for (var element in map.entries) {
    res[element.key!.toStringValue()!] = element.value!.toStringValue()!;
  }

  return res;
}